<template>
  <div class="head">
    <h1>Laboratory safety education</h1>
    <h3>based on historical accident</h3>
  </div>
  <el-divider />
  <div class="title">
    <div class="imgTitle">
      <img
        style="width: 180px"
        src="@/images/homePage/experimentCredit.jpg"
        alt=""
      />
      <div class="subtitle">Experimenter credit</div>
    </div>
    <div class="imgTitle">
      <img
        style="width: 180px"
        src="@/images/homePage/experimentCredit.jpg"
        alt=""
      />
      <div class="subtitle">Experimenter credit</div>
    </div>
    <div class="imgTitle">
      <img
        style="width: 180px"
        src="@/images/homePage/experimentCredit.jpg"
        alt=""
      />
      <div class="subtitle">Experimenter credit</div>
    </div>
    <div class="imgTitle">
      <img
        style="width: 180px"
        src="@/images/homePage/experimentCredit.jpg"
        alt=""
      />
      <div class="subtitle">Experimenter credit</div>
    </div>
  </div>
  <el-divider />
  <div class="library">
    <div style="font-size: 24px; margin-left: 40px">Theme Library:</div>
    <button>chemical</button>
    <button>equipment</button>
    <button>consumables</button>
    <button>experiment project</button>
    <button>risk analysis</button>
    <button>chemical</button>
    <div style="font-size: 24px; margin-left: 40px; margin-top: 20px">
      Specialized Topic Library
    </div>
    <button>safety education study resources</button>
    <button>safety study exam</button>
    <button>safety questionare</button>
    <button>accident data</button>
  </div>
</template>

<script setup lang="ts" name="HomePage"></script>
<style scoped>
.head {
  margin-left: 20px;
}
.title {
  display: flex;
  text-align: center;
  font-size: 24px;
  margin-top: 40px;
}

.library {
  text-align: center;
  font-size: 24px;
  margin-top: 50px;
}

.imgTitle {
  margin: 20px;
  display: flex;
  flex: 1 0 0%;
  flex-direction: column;
}
/* .subtitle {
  margin-left: 80px;
  margin-right: 40px;
} */
.subtitle:hover {
  text-decoration: underline;
  color: blueviolet;
}
button {
  margin-top: 20px;
  margin-left: 30px;
  margin-right: 30px;
  width: 240px;
  height: 60px;
  font-size: 20px;
  text-align: center;
  background-color: #da70d6;
  border-radius: 5px;
  border: 1px;
}
button:hover {
  background-color: #00c957;
}
</style>
